﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PSystemEdit.aspx.cs" Inherits="Gmis.Web.Manage.Party.PSystemEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <script type="text/javascript">        
          function uploadifyComplete(event, queueId, fileObj, response, data) {            
              var obj = DWZ.jsonEval(response);
              document.getElementById("idImg").src = obj.msg;
              document.getElementById("txt_sPicture").value = obj.msg;
          }
    </script> 
</head>
<body>
   <div class="pageContent">
        <form method="post" action="Party/PSystemHandler.ashx" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" layoutH="56">
            <input type="hidden" name="txt_sId" value="<%=sId %>" />
            <input type="hidden" name="action" value="<%=action %>" />
            <p>
                <label>文件编号</label><input type="text" name="txt_sNumber" value="<%=model.sNumber %>" class="required" />
            </p>
            <p>
                <label>文件标题</label><input type="text" name="txt_sTitle" value="<%=model.sTitle %>" class="required" />
            </p>
            
            <dl class="nowrap">
                <dt>制度图片：</dt>
                <dd>
                <input type="hidden" id="txt_sPicture" name="txt_sPicture" />
                <img id="idImg" width="100px" height="120px" src="<%= Gmis.Public.CommonFunction.GetSystemPath() + model.sPicture %>"/>
                <span id="fileQueue" class="fileQueue"></span>
                <input id="testFileInput" type="file" name="image"
                       uploader="../Scripts/uploadify/scripts/uploadify.swf"
                       cancelImg="../Scripts/uploadify/cancel.png" 
                       script="UploadFile.ashx?action=system"                                
                       fileQueue="fileQueue"
                       onAllComplete="uploadifyComplete" 
                       fileExt="*.jpg;*.jpeg;*.gif;*.png;"
                       fileDesc="*.jpg;*.jpeg;*.gif;*.png;"/>
                 </dd>
            </dl>
        </div> 
   
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent"><button type="submit">提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent"><button type="button" class="close">关闭</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
